package com.lianheng.cms.common;

import com.lianheng.cms.common.gen.JFMVCGenerator;
import com.lianheng.cms.common.gen.JFinalConfig;

import java.util.HashMap;
import java.util.Map;

/**
 * @Classname GenAppTest
 * @Description 生成JFINAL+SPRING BOOT MVC聚合服务版
 * @Date 2019/10/19 11:10
 * @Created by yufeng
 */
public class GenAppTest extends JFinalConfig {
    public static Map<String, String> tablearray = new HashMap<>();
    static {
//        tablearray.put("manager", "Manager");
        tablearray.put("t_invest_answer", "InvestAnswer");

    }


    public static void main(String[] args) {
        JFMVCGenerator jfmvcGenerator = JFMVCGenerator.me
                .setSrcFolder(projectType)
                .setPackageBase(packageBase);
        for (String tableName : tablearray.keySet()) {
            jfmvcGenerator.javaRender(tablearray.get(tableName), tableName);
        }

    }


}
